package com.ibeetl.admin.console.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;

import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 
* gen by Spring Boot2 Admin 2018-06-14
*/
public class CoreOrders extends BaseEntity {

    //id
    @NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID

    private Integer id;

    //产品id

    private Integer productId;

    //客户id

    private Integer customerId;

    //销售id

    private Integer sellerId;

    //成交价

    private String dealPrice;

    //数量

    private String count;

    //付款状态

    private String payment;

    //删除标识
    /*逻辑删除标志*/
    @InsertIgnore
    @LogicDelete(value = 1)

    private Integer delFlag;


    private Date updatedAt;


    private Date createdAt;

    public CoreOrders() {
    }

    /**
     * id
     *
     * @return
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 产品id
     *
     * @return
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * 产品id
     *
     * @param productId
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * 客户id
     *
     * @return
     */
    public Integer getCustomerId() {
        return customerId;
    }

    /**
     * 客户id
     *
     * @param customerId
     */
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    /**
     * 销售id
     *
     * @return
     */
    public Integer getSellerId() {
        return sellerId;
    }

    /**
     * 销售id
     *
     * @param sellerId
     */
    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    /**
     * 成交价
     *
     * @return
     */
    public String getDealPrice() {
        return dealPrice;
    }

    /**
     * 成交价
     *
     * @param dealPrice
     */
    public void setDealPrice(String dealPrice) {
        this.dealPrice = dealPrice;
    }

    /**
     * 数量
     *
     * @return
     */
    public String getCount() {
        return count;
    }

    /**
     * 数量
     *
     * @param count
     */
    public void setCount(String count) {
        this.count = count;
    }

    /**
     * 付款状态
     *
     * @return
     */
    public String getPayment() {
        return payment;
    }

    /**
     * 付款状态
     *
     * @param payment
     */
    public void setPayment(String payment) {
        this.payment = payment;
    }

    /**
     * 删除标识
     *
     * @return
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标识
     *
     * @param delFlag
     */
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }


}
